/* ============================================================
   DENALI WordPress Theme — oilgas.css
   Oil & Gas page specific styles only.
   Global header, footer, back-to-top are in global.css.
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.og-hero {
  position: relative;
  min-height: clamp(680px, 92svh, 860px);
  display: flex;
  align-items: center;
  isolation: isolate;
  background: var(--on-dark);
  overflow: hidden;
}

.og-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.og-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.04) contrast(1.04);
  transform: scale(1.06);
  animation: ogHeroZoom 16s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform;
}
@keyframes ogHeroZoom {
  to { transform: scale(1); }
}

/* Strong left-to-right gradient overlay — matches Stitch design */
.og-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 32%, rgba(121, 169, 115, 0.20) 0%, rgba(121, 169, 115, 0) 34%),
    linear-gradient(90deg, rgba(8, 28, 49, 0.96) 0%, rgba(8, 28, 49, 0.82) 39%, rgba(8, 28, 49, 0.38) 68%, rgba(8, 28, 49, 0.14) 100%),
    linear-gradient(180deg, rgba(8, 28, 49, 0.44) 0%, rgba(8, 28, 49, 0.12) 46%, rgba(8, 28, 49, 0.76) 100%);
}

.og-hero-content {
  position: relative;
  z-index: 10;
  padding-top: clamp(6rem, 11vh, 8rem);
  padding-bottom: clamp(5rem, 10vh, 7rem);
  width: 100%;
}

.og-hero-text {
  max-width: min(100%, 46rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Pill label — green tinted on dark */
.og-label-pill {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(121, 169, 115, 0.16);
  border: 1px solid rgba(163, 212, 134, 0.32);
  border-radius: var(--radius-full);
  color: var(--primary-fixed-dim);
  backdrop-filter: blur(14px);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.og-hero-h1 {
  color: #fff;
  font-size: clamp(2.85rem, 6.2vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 11ch;
  margin: 0;
  overflow-wrap: normal;
  text-wrap: balance;
}

.og-hero-h1 .og-accent {
  display: inline-block;
}

/* Highlighted word — primary-fixed-dim (#a3d486) */
.og-accent {
  color: var(--primary-fixed-dim);
}

.og-hero-sub {
  color: rgba(255, 255, 255, 0.86);
  max-width: 38rem;
  line-height: 1.72;
  margin: 0;
}

.og-hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-sm);
}

/* Ghost / border button for hero */
.og-btn-border {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.70);
  color: #fff;
  transition:
    background var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out);
}
.og-btn-border:hover {
  background: #fff;
  color: var(--primary);
}

/* Scroll indicator */
.og-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  z-index: 10;
}
.og-scroll-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.og-scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(255,255,255,.45), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ══════════════════════════════════════════════════════════════
   STRATEGIC STEWARDSHIP
══════════════════════════════════════════════════════════════ */
.og-stewardship {
  position: relative;
  background: linear-gradient(180deg, #f8faf6 0%, var(--surface-white) 58%);
  margin-top: -4.5rem;
  padding-top: calc(var(--space-section) + 2.25rem);
  border-radius: 2rem 2rem 0 0;
  z-index: 2;
  overflow: hidden;
}

.og-stewardship::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 169, 115, 0.45), transparent);
}

.og-stewardship::after {
  content: "";
  position: absolute;
  top: -10rem;
  right: -8rem;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(121,169,115,.16), transparent 66%);
  pointer-events: none;
}

.og-stewardship-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

/* Text side */
.og-stew-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.og-stew-blob {
  position: absolute;
  top: -3rem;
  left: -3rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(36,76,13,.07), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(24px);
}

.og-stew-lead {
  line-height: 1.7;
  margin-bottom: 0;
}
.og-stew-body {
  line-height: 1.7;
  margin-bottom: 0;
  color: rgba(66, 73, 61, 0.80);
}

.og-stew-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.og-stew-stat-num {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.og-stew-stat-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-top: 0.25rem;
}
.og-stew-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(194,201,185,.35);
  flex-shrink: 0;
}

/* Image side */
.og-stew-img-col {
  position: relative;
}
.og-stew-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  aspect-ratio: 4 / 5;
}
.og-stew-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out);
  display: block;
}
.og-stew-img-wrap:hover .og-stew-img { transform: scale(1.05); }

.og-stew-img-tint {
  position: absolute;
  inset: 0;
  background: rgba(36,76,13,.10);
  transition: background var(--duration-slow) var(--ease-out);
  pointer-events: none;
}
.og-stew-img-wrap:hover .og-stew-img-tint { background: transparent; }

/* Floating quote card */
.og-quote-card {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  background: var(--surface-white);
  border: 1px solid rgba(194,201,185,.12);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  max-width: 15rem;
  z-index: 10;
  transition: transform var(--duration-base) var(--ease-spring);
}
.og-quote-card:hover { transform: translateY(-4px); }

.og-quote-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.75rem;
  font-variation-settings: 'FILL' 1;
}
.og-quote-text {
  font-size: var(--fs-base);
  font-weight: 600;
  font-style: italic;
  color: var(--on-surface);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   BENTO GRID
══════════════════════════════════════════════════════════════ */
.og-bento-section {
  background: var(--surface-low);
}

.og-bento-header {
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.og-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 2rem;
}

/* Base bento card */
.og-bento-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.og-bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* ── Exploration (wide: 8 cols) ── */
.og-bento-explore {
  grid-column: span 8;
  background: var(--surface-white);
  border: 1px solid rgba(194,201,185,.12);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  min-height: 280px;
}

.og-bento-explore-content {
  flex: 1;
  max-width: 28rem;
  position: relative;
  z-index: 2;
}

.og-bento-icon-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.og-bento-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.og-icon-primary { background: rgba(36,76,13,.10); color: var(--primary); }
.og-bento-icon .material-symbols-outlined { font-size: 1.5rem; }

.og-bento-body { max-width: 26rem; }

.og-bento-explore-img {
  position: absolute;
  right: 0; top: 0;
  width: 45%; height: 100%;
  opacity: 0.2;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.og-bento-explore:hover .og-bento-explore-img { opacity: 0.42; }
.og-bento-explore-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter var(--duration-slow) var(--ease-out);
}
.og-bento-explore:hover .og-bento-explore-img img { filter: grayscale(0); }

/* ── Production (4 cols, primary green) ── */
.og-bento-production {
  grid-column: span 4;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  position: relative;
}

.og-bento-prod-img {
  position: absolute;
  inset: 0;
  opacity: 0.30;
  transition: transform var(--duration-slow) var(--ease-out);
}
.og-bento-production:hover .og-bento-prod-img { transform: scale(1.08); }
.og-bento-prod-img img { width: 100%; height: 100%; object-fit: cover; }

.og-bento-prod-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
}
.og-bento-prod-content .headline-md { margin-bottom: 1rem; color: #fff; }
.og-bento-prod-content .body-md { color: rgba(255,255,255,.80); }

.og-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-weight: 600;
  font-family: var(--font-family);
  font-size: var(--fs-base);
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: gap var(--duration-base) var(--ease-out);
}
.og-learn-more:hover { gap: 0.7rem; }
.og-learn-more .material-symbols-outlined { font-size: 1.1rem; }

/* ── Refining (4 cols, tertiary slate) ── */
.og-bento-refining {
  grid-column: span 4;
  background: var(--tertiary);
  color: #fff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.og-refine-icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: rgba(255,255,255,.10);
  border-radius: var(--radius-md);
  width: fit-content;
  color: #fff;
}
.og-bento-refining .headline-md { color: #fff; margin-bottom: 1rem; }
.og-refine-body { color: rgba(218,226,253,.70); flex: 1; }

/* ── Logistics (8 cols) ── */
.og-bento-logistics {
  grid-column: span 8;
  background: var(--surface-white);
  border: 1px solid rgba(194,201,185,.12);
  display: flex;
  align-items: center;
  min-height: 240px;
  overflow: hidden;
  position: relative;
}

.og-bento-log-content {
  padding: 2.5rem;
  max-width: 22rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.og-bento-log-content .headline-md { margin-bottom: 1rem; }

.og-bento-log-img {
  position: absolute;
  right: 0; top: 0;
  width: 55%; height: 100%;
}
.og-log-fade {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 60%;
  background: linear-gradient(to right, var(--surface-white), transparent);
  z-index: 1;
}
.og-bento-log-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════════════════
   TECH-DRIVEN EFFICIENCY
══════════════════════════════════════════════════════════════ */
.og-tech {
  background: var(--surface-white);
}

.og-tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Image col */
.og-tech-img-col {
  position: relative;
}
.og-tech-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.og-tech-img {
  width: 100%;
  display: block;
  transition: transform var(--duration-slower) var(--ease-out);
}
.og-tech-img-wrap:hover .og-tech-img { transform: scale(1.04); }

/* Pulsing badge */
.og-tech-badge {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 5rem; height: 5rem;
  background: var(--secondary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: ogPulse 2.5s ease-in-out infinite;
  z-index: 10;
}
.og-tech-badge .material-symbols-outlined { font-size: 2rem; }
@keyframes ogPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,98,157,.40), var(--shadow-lg); }
  50%       { box-shadow: 0 0 0 12px rgba(0,98,157,0), var(--shadow-lg); }
}

/* Feature list col */
.og-tech-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.og-tech-text .headline-lg { margin-bottom: 0; }

.og-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.og-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: gap var(--duration-base) var(--ease-out);
}

.og-feat-icon-wrap {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: var(--radius-full);
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition:
    background var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out);
}
.og-feature-item:hover .og-feat-icon-wrap {
  background: var(--primary);
  color: #fff;
}
.og-feat-icon-wrap .material-symbols-outlined { font-size: 1.25rem; }

.og-feat-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

/* ══════════════════════════════════════════════════════════════
   ENVIRONMENTAL MITIGATION
══════════════════════════════════════════════════════════════ */
.og-env {
  background: #131b2e; /* on-tertiary-fixed */
  padding-block: var(--space-section);
}

.og-env-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.og-eyebrow-dim {
  color: var(--primary-fixed-dim);
}

.og-env-btn {
  padding: 1rem 2rem;
  flex-shrink: 0;
}

.og-env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.og-env-card {
  background: rgba(59, 67, 88, 0.40);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition:
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}
.og-env-card:hover {
  border-color: rgba(163,212,134,.30);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.og-env-icon {
  font-size: 3rem;
  color: var(--primary-fixed-dim);
  display: block;
  margin-bottom: 1.5rem;
  font-variation-settings: 'FILL' 0;
}
.og-env-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.og-env-body { color: rgba(255,255,255,.65); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════
   SAFETY METRICS
══════════════════════════════════════════════════════════════ */
.og-safety { background: var(--surface-white); }

.og-eyebrow-error { color: #ba1a1a; }

.og-safety-headline {
  margin-block: 0 5rem;
}

.og-safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 5rem;
}

.og-safety-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.og-safety-num {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--primary);
  min-height: 1.1em;
}

.og-safety-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(66,73,61,.55);
  max-width: 12rem;
  text-align: center;
  line-height: 1.5;
}

/* CTA Banner — gradient border */
.og-cta-banner {
  padding: 2px;
  background: linear-gradient(135deg, #0693e7 0%, #3b6524 100%);
  border-radius: 1.5rem;
}
.og-cta-inner {
  background: var(--surface-white);
  border-radius: calc(1.5rem - 2px);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: left;
}
.og-cta-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.og-cta-btn {
  padding: 1rem 2.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .og-bento-explore  { grid-column: span 12; }
  .og-bento-production { grid-column: span 6; }
  .og-bento-refining { grid-column: span 6; }
  .og-bento-logistics { grid-column: span 12; }
}

@media (max-width: 900px) {
  .og-hero { min-height: 760px; }
  .og-hero-overlay {
    background:
      linear-gradient(180deg, rgba(8,28,49,.90) 0%, rgba(8,28,49,.72) 58%, rgba(8,28,49,.86) 100%);
  }
  .og-hero-text { max-width: 100%; }
  .og-hero-h1 { max-width: 12ch; }
  .og-stewardship { margin-top: -2.5rem; border-radius: 1.5rem 1.5rem 0 0; }
  .og-stewardship-grid { grid-template-columns: 1fr; gap: 3rem; }
  .og-stew-img-col { max-width: 32rem; margin-inline: auto; }
  .og-stew-img-wrap { aspect-ratio: 16 / 9; }
  .og-quote-card { right: 0; bottom: -1rem; }

  .og-tech-grid { grid-template-columns: 1fr; gap: 3rem; }

  .og-env-grid { grid-template-columns: 1fr; }
  .og-env-header { flex-direction: column; align-items: flex-start; }

  .og-safety-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .og-hero { min-height: 690px; }
  .og-hero-content { padding-top: 6.5rem; padding-bottom: 5.5rem; }
  .og-hero-h1 { font-size: clamp(2.45rem, 14vw, 4.3rem); max-width: 10.8ch; letter-spacing: -0.045em; }
  .og-hero-sub { font-size: 1rem; }
  .og-scroll-indicator { display: none; }
  .og-stewardship { margin-top: -1.75rem; padding-top: 5.5rem; }
  .og-bento-production { grid-column: span 12; }
  .og-bento-refining   { grid-column: span 12; }

  .og-hero-cta { flex-direction: column; }
  .og-safety-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .og-cta-inner { flex-direction: column; text-align: center; }
  .og-cta-btn { width: 100%; }
}
