/* =============================================================
   Pioneer LLC — Oil & Gas Page Stylesheet
   Companion to: oil-gas.html
   Fonts loaded via HTML: Playfair Display, DM Sans (Google Fonts)
   Dependencies: Bootstrap 5.3.3, Bootstrap Icons 1.11.3
   ============================================================= */

/* ─── DESIGN TOKENS ─── */
:root {
  --blue-deep:    #0b2a5a;
  --blue-mid:     #1149a3;
  --blue-bright:  #1e6ef5;
  --blue-sky:     #4e9af1;
  --blue-ice:     #dbeafe;
  --blue-pale:    #f0f6ff;
  --white:        #ffffff;
  --off-white:    #f8faff;
  --slate:        #4a5e7a;
  --slate-light:  #8499b5;
  --text-dark:    #0d1f3c;
  --amber:        #c8700a;
  --amber-mid:    #e8891a;
  --amber-light:  #fff4e6;
  --amber-pale:   #fef9f2;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text-dark); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }

/* ─── NAVIGATION ─── */
.site-nav { background: var(--white); border-bottom: 1px solid rgba(11,42,90,0.1); position: sticky; top: 0; z-index: 1000; padding: 0 1.5rem; box-shadow: 0 2px 20px rgba(11,42,90,0.06); }
.site-nav .navbar-brand { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.35rem; color: var(--blue-deep) !important; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.5rem; }
.site-nav .navbar-brand .brand-icon { width: 34px; height: 34px; background: var(--blue-bright); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.site-nav .navbar-brand .brand-icon i { color: #fff; font-size: 1rem; }
.site-nav .navbar-brand span { color: var(--blue-bright); }
.site-nav .nav-link { color: var(--slate) !important; font-size: 0.82rem; letter-spacing: 0.04em; font-weight: 600; text-transform: uppercase; padding: 1.3rem 0.85rem !important; transition: color 0.2s; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--blue-bright) !important; }
.site-nav .btn-nav { background: var(--blue-bright); color: #fff; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em; border: none; border-radius: 6px; padding: 0.5rem 1.25rem; transition: background 0.2s; text-decoration: none; }
.site-nav .btn-nav:hover { background: var(--blue-mid); color: #fff; }

/* ─── HERO — FULL BLEED PHOTO ─── */
.page-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* The photo fills the entire hero */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

/* Multi-layer overlay: dark at bottom for text legibility, warm tint from the photo */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(5, 12, 30, 0.96) 0%,
      rgba(5, 12, 30, 0.72) 35%,
      rgba(5, 12, 30, 0.22) 70%,
      rgba(5, 12, 30, 0.05) 100%
    ),
    linear-gradient(
      to right,
      rgba(5, 12, 30, 0.55) 0%,
      transparent 60%
    );
}

/* Subtle warm vignette matching photo's orange palette */
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(200, 112, 10, 0.1) 0%, transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1rem 0 4.5rem;
  width: 100%;
}

/* Breadcrumb */
.breadcrumb-trail { display: flex; align-items: center; gap: 0.5rem; font-size: 0.73rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 1.5rem; }
.breadcrumb-trail a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.breadcrumb-trail a:hover { color: #fff; }
.breadcrumb-trail i { font-size: 0.6rem; }

/* Eyebrow */
.hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-mid); font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.7rem; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 30px; height: 2px; background: var(--amber-mid); border-radius: 2px; }

/* Heading */
.page-hero h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); color: #fff; line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 1rem; }
.page-hero h1 em { color: var(--amber-mid); font-style: italic; }

/* Sub-heading line under h1 */
.hero-sub-label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.6rem; }
.hero-sub-label::before { content: ''; display: inline-block; width: 18px; height: 1px; background: rgba(255,255,255,0.3); }

/* Hero descriptor text */
.hero-lead { color: rgba(255,255,255,0.62); font-size: 1.02rem; line-height: 1.8; max-width: 560px; margin-bottom: 2.5rem; }

/* Market stat chips shown on hero */
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.5rem; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.78); font-size: 0.73rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.32rem 0.85rem; border-radius: 100px;
  transition: background 0.2s, border-color 0.2s;
}
.hero-chip i { color: var(--amber-mid); font-size: 0.8rem; }

/* Hero CTA buttons */
.btn-amber {
  background: var(--amber-mid); color: #fff; font-weight: 800; font-size: 0.86rem;
  letter-spacing: 0.04em; border: none; border-radius: 8px; padding: 0.9rem 2.1rem;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 24px rgba(200,112,10,0.35);
}
.btn-amber:hover { background: var(--amber); color: #fff; transform: translateY(-2px); }

.btn-ghost-white {
  background: transparent; color: rgba(255,255,255,0.82);
  border: 1.5px solid rgba(255,255,255,0.28);
  font-size: 0.86rem; border-radius: 8px; padding: 0.9rem 2.1rem;
  text-decoration: none; display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.65); color: #fff; }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 2.2rem; right: 2.5rem; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.25); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.scroll-hint i { font-size: 1.1rem; animation: scrollBounce 1.8s ease-in-out infinite; }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ─── MARKET SEGMENTS STRIP ─── */
.segments-strip {
  background: var(--blue-deep);
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.segment-tab {
  flex: 1;
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  cursor: default;
  transition: background 0.2s;
  position: relative;
}
.segment-tab:last-child { border-right: none; }
.segment-tab:hover { background: rgba(255,255,255,0.04); }
.segment-tab i { font-size: 1.4rem; color: var(--amber-mid); margin-bottom: 0.4rem; display: block; }
.segment-tab span { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 600; display: block; }
.segment-tab strong { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: #fff; display: block; margin-top: 0.2rem; }

/* ─── SHARED SECTION LABELS ─── */
.section-eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-bright); font-weight: 700; margin-bottom: 0.65rem; display: flex; align-items: center; gap: 0.55rem; }
.section-eyebrow::before { content: ''; display: inline-block; width: 18px; height: 2px; background: var(--blue-bright); border-radius: 2px; }
.section-eyebrow.amber { color: var(--amber-mid); }
.section-eyebrow.amber::before { background: var(--amber-mid); }
.section-eyebrow.light { color: rgba(255,255,255,0.5); }
.section-eyebrow.light::before { background: rgba(255,255,255,0.3); }
.body-lead { font-size: 1rem; color: var(--slate); line-height: 1.85; }

/* Pull quote */
.pull-quote { border-left: 4px solid var(--amber-mid); padding: 1.2rem 1.8rem; background: var(--amber-pale); border-radius: 0 10px 10px 0; margin: 2rem 0; }
.pull-quote p { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-style: italic; color: var(--amber); line-height: 1.7; margin: 0; }

/* ─── OVERVIEW SECTION ─── */
.overview-section { padding: 6.5rem 0; background: var(--white); }
.overview-section h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); color: var(--text-dark); font-weight: 800; margin-bottom: 0.8rem; line-height: 1.2; }

/* Visual market scope diagram */
.scope-visual {
  background: var(--off-white);
  border: 1px solid rgba(11,42,90,0.07);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
}
.scope-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.scope-row:last-child { margin-bottom: 0; }
.scope-node {
  flex: 1; border-radius: 10px; padding: 1.1rem 0.9rem; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.scope-node:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.scope-node i { font-size: 1.4rem; display: block; margin-bottom: 0.4rem; }
.scope-node strong { font-size: 1.0rem; font-weight: 700; letter-spacing: 0.04em; display: block; line-height: 1.3; }
.scope-node small { font-size: 0.90rem; opacity: 0.7; line-height: 1.4; display: block; margin-top: 0.3rem; }

/* Upstream */
.node-upstream { background: linear-gradient(135deg, #0b2a5a, #1149a3); color: #fff; }
.node-upstream i { color: rgba(255,255,255,0.8); }
/* Midstream */
.node-mid { background: linear-gradient(135deg, #1149a3, #1e6ef5); color: #fff; }
.node-mid i { color: rgba(255,255,255,0.8); }
/* Downstream */
.node-down { background: linear-gradient(135deg, #1e6ef5, #4e9af1); color: #fff; }
.node-down i { color: rgba(255,255,255,0.85); }
/* Shale / LNG */
.node-shale { background: linear-gradient(135deg, #c8700a, #e8891a); color: #fff; flex: 1.4; }
.node-shale i { color: rgba(255,255,255,0.85); }
.node-geop { background: linear-gradient(135deg, #0b2a5a, #0f3875); color: #fff; flex: 1; }
.node-geop i { color: rgba(255,255,255,0.8); }
.node-trans { background: linear-gradient(135deg, #0b6e4f, #1a9e70); color: #fff; flex: 1.2; }
.node-trans i { color: rgba(255,255,255,0.85); }

/* ─── SERVICES GRID ─── */
.services-section { padding: 6.5rem 0; background: var(--off-white); }
.services-section h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); color: var(--text-dark); font-weight: 800; margin-bottom: 0.8rem; line-height: 1.2; }

.service-card {
  background: var(--white); border: 1px solid rgba(11,42,90,0.08);
  border-radius: 14px; padding: 2rem 1.8rem; height: 100%;
  transition: box-shadow 0.25s, transform 0.25s; position: relative; overflow: hidden;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--amber-mid), var(--amber-light)); border-radius: 14px 14px 0 0; opacity: 0; transition: opacity 0.25s; }
.service-card:hover { box-shadow: 0 18px 56px rgba(11,42,90,0.1); transform: translateY(-5px); }
.service-card:hover::before { opacity: 1; }
.service-icon { width: 56px; height: 56px; border-radius: 13px; background: var(--amber-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; transition: background 0.2s; }
.service-card:hover .service-icon { background: var(--amber-light); }
.service-icon i { color: var(--amber-mid); font-size: 1.5rem; }
.service-card h5 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.55rem; line-height: 1.3; }
.service-card p { font-size: 0.84rem; color: var(--slate); line-height: 1.7; margin: 0; }

/* ─── FOCUS AREAS (challenges list) ─── */
.focus-section { padding: 6.5rem 0; background: var(--blue-deep); position: relative; overflow: hidden; }
.focus-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(200,112,10,0.15) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(30,110,245,0.12) 0%, transparent 40%);
}
.focus-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 55px 55px; }
.focus-content { position: relative; z-index: 2; }
.focus-section h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); color: #fff; font-weight: 800; margin-bottom: 0.8rem; line-height: 1.2; }
.focus-section .body-lead { color: rgba(255,255,255,0.55); }

.challenge-item {
  display: flex; align-items: flex-start; gap: 1.1rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; padding: 1.4rem 1.5rem; margin-bottom: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
}
.challenge-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(232,137,26,0.3); }
.challenge-item:last-child { margin-bottom: 0; }
.challenge-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(232,137,26,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.challenge-icon i { color: var(--amber-mid); font-size: 1.1rem; }
.challenge-item h6 { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: #fff; font-weight: 700; margin-bottom: 0.25rem; }
.challenge-item p { font-size: 0.81rem; color: rgba(255,255,255,0.45); margin: 0; line-height: 1.6; }

/* ─── CTA SECTION ─── */
.cta-section { background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-mid) 100%); padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%); }
.cta-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: #fff; margin-bottom: 0.7rem; position: relative; font-weight: 800; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 2rem; position: relative; }
.btn-cta-white { background: #fff; color: var(--blue-mid); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.04em; border: none; border-radius: 7px; padding: 0.9rem 2.2rem; text-decoration: none; display: inline-block; position: relative; transition: background 0.2s, transform 0.15s; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.btn-cta-white:hover { background: var(--blue-ice); color: var(--blue-deep); transform: translateY(-2px); }
.btn-cta-outline-w { background: transparent; color: rgba(255,255,255,0.85); border: 1.5px solid rgba(255,255,255,0.35); font-size: 0.86rem; border-radius: 7px; padding: 0.9rem 2.2rem; text-decoration: none; display: inline-block; transition: border-color 0.2s, color 0.2s; position: relative; }
.btn-cta-outline-w:hover { border-color: #fff; color: #fff; }

/* ─── RELATED SERVICES STRIP ─── */
.related-section { background: var(--white); padding: 4rem 0; border-top: 1px solid rgba(11,42,90,0.07); }
.related-section h5 { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate-light); margin-bottom: 1.5rem; }
.related-link {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--off-white); border: 1px solid rgba(11,42,90,0.07);
  border-radius: 10px; padding: 1rem 1.2rem;
  text-decoration: none; color: var(--text-dark);
  font-size: 0.85rem; font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.related-link i { color: var(--blue-bright); font-size: 1.1rem; flex-shrink: 0; }
.related-link:hover { border-color: var(--blue-bright); background: var(--blue-pale); transform: translateY(-2px); color: var(--blue-deep); }
.related-link .arrow { margin-left: auto; color: var(--slate-light); font-size: 0.85rem; transition: transform 0.2s; }
.related-link:hover .arrow { transform: translateX(3px); color: var(--blue-bright); }

/* ─── SCROLL ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
.anim-1 { animation: fadeDown 0.65s ease both 0.08s; }
.anim-2 { animation: fadeDown 0.65s ease both 0.20s; }
.anim-3 { animation: fadeDown 0.65s ease both 0.34s; }
.anim-4 { animation: fadeDown 0.65s ease both 0.48s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
  .page-hero { min-height: 70vh; }
  .scroll-hint { display: none; }
  .scope-row { flex-direction: column; }
}
@media (max-width: 768px) {
  .page-hero { min-height: auto; }
  .hero-content { padding: 6rem 0 4rem; }
  .segment-tab span { display: none; }
}
