/*
Theme Name: Jam Energy Corporate
Theme URI: https://jamenergy-co.com/
Author: Pishtazan Energy Jam
Description: A premium, single-page corporate theme for Pishtazan Energy Jam — energy sector sourcing, procurement and supply chain solutions. Palette and iconography derived from the company's brand mark.
Version: 1.1.0
License: GPL-2.0-or-later
Text Domain: jam-energy
*/

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --navy-deep: #0B1A27;
  --navy: #16324A;
  --navy-2: #245279;
  --navy-3: #2D6799;
  --green: #0D3F1C;
  --green-2: #1D7738;
  --gold: #F6B74D;
  --gold-2: #F9D291;
  --cream: #F7F4EE;
  --cream-2: #EFE9DB;
  --ink: #16232E;
  --slate: #5B6B76;
  --slate-light: #8695A0;
  --white: #FFFFFF;
  --border: #E7E2D8;
  --border-dark: rgba(255,255,255,.14);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --radius: 10px;
  --shadow-soft: 0 10px 30px rgba(11, 26, 39, .08);
  --shadow-strong: 0 20px 50px rgba(11, 26, 39, .18);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--navy);
  letter-spacing: .2px;
}
p { margin: 0 0 16px; color: var(--slate); }
a { color: var(--gold); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
svg { display: block; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
button { font-family: inherit; }

.site-container { overflow-x: hidden; }

.skip-link {
  position: fixed; left: -9999px; top: -9999px; z-index: 200;
}
.skip-link:focus {
  left: 12px; top: 12px; background: var(--gold); color: var(--navy);
  padding: 10px 16px; border-radius: 4px; font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.section-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 40px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--gold-2); }

.section-intro {
  max-width: 640px;
  font-size: 17px;
  margin-top: 18px;
}
.section-intro-light { color: rgba(255,255,255,.72); }

/* Reveal-on-scroll (progressive enhancement; content visible without JS) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(11,26,39,.08);
  border-bottom-color: transparent;
}
.header-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo-section {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.logo-full-mark { height: 40px; width: auto; object-fit: contain; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.nav-index {
  font-family: var(--font-display);
  font-size: 11px; color: var(--gold); font-weight: 700;
}

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--navy); white-space: nowrap;
}
.header-phone svg { color: var(--gold); }
.header-cta {
  background: var(--navy);
  color: var(--white);
  font-size: 13px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background .25s ease, transform .25s ease;
}
.header-cta:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links-mobile {
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.nav-links-mobile.is-open { max-height: 320px; }
.nav-links-mobile a {
  padding: 16px 24px;
  font-size: 15px; font-weight: 600; color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.nav-links-mobile .mobile-phone { color: var(--gold); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 40px 100px;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,26,39,.96) 0%, rgba(22,50,74,.88) 38%, rgba(22,50,74,.55) 65%, rgba(11,26,39,.35) 100%),
    linear-gradient(0deg, rgba(11,26,39,.55) 0%, transparent 30%);
}

.hero-content { position: relative; max-width: 760px; color: var(--white); }
.hero-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 22px;
}
.flame-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(228,169,76,.22);
  animation: pulseFlame 2.4s ease-in-out infinite;
}
@keyframes pulseFlame {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(228,169,76,.22); }
  50% { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(228,169,76,.12); }
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 15ch;
}
.hero-description {
  font-size: 18px; line-height: 1.75;
  color: rgba(255,255,255,.82);
  max-width: 60ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 40px; }

.cta-button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 700; font-size: 14px;
  letter-spacing: .4px; text-transform: uppercase;
  border: 0; cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cta-button:hover { background: var(--gold-2); color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(228,169,76,.28); }

.cta-ghost {
  display: inline-flex; align-items: center;
  padding: 15px 26px;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 5px;
  font-weight: 700; font-size: 14px; letter-spacing: .4px; text-transform: uppercase;
  color: var(--white);
  transition: border-color .25s ease, background .25s ease;
}
.cta-ghost:hover { border-color: var(--gold); background: rgba(255,255,255,.06); color: var(--white); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags span {
  font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: rgba(255,255,255,.72);
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}
.about-text h2 { font-size: 38px; margin-bottom: 22px; max-width: 14ch; }
.about-text p { font-size: 16px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.about-stats div {
  font-size: 13px; color: var(--slate); font-weight: 500;
}
.about-stats span {
  display: block;
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800; color: var(--navy);
  margin-bottom: 4px;
}
.about-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-strong); aspect-ratio: 4/3.4; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   SERVICES
   ========================================================= */
.services-section { background: var(--cream); }
.services-section h2 { font-size: 38px; margin-bottom: 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 46px;
}
.service-card {
  background: var(--white);
  padding: 34px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: transparent;
}
.service-card-wide { grid-column: span 1; }
.service-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: var(--gold-2);
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: .1px; }
.service-card p { font-size: 14.5px; margin-bottom: 0; }

@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .services-grid .service-card { grid-column: span 2; }
  .services-grid .service-card:nth-child(4) { grid-column: span 3; }
  .services-grid .service-card-wide { grid-column: span 3; }
}

/* =========================================================
   PROCESS / PIPELINE (signature element)
   ========================================================= */
.process-section {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
}
.light-heading { color: var(--white); font-size: 38px; margin-top: 0; }

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 64px;
  counter-reset: step;
}
.pipeline-track {
  position: absolute;
  top: 27px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 24px);
  opacity: .55;
}
.pipeline-step { position: relative; text-align: left; }
.pipeline-node {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-2);
  border: 3px solid var(--gold);
  display: grid; place-items: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--navy);
}
.pipeline-node span {
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px; color: var(--gold-2);
}
.pipeline-step h4 { color: var(--white); font-size: 19px; margin-bottom: 8px; }
.pipeline-step p { color: rgba(255,255,255,.68); font-size: 14px; margin-bottom: 0; }

/* =========================================================
   VALUE
   ========================================================= */
.value-section { background: var(--green); color: var(--white); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.value-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: 20px 22px;
  border-radius: 8px;
  font-weight: 500; font-size: 15px;
  transition: background .25s ease, transform .25s ease;
}
.value-item:hover { background: rgba(255,255,255,.13); transform: translateY(-3px); }
.value-mark {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--gold);
  color: var(--green);
  border-radius: 50%;
  font-size: 13px; font-weight: 800;
}

/* =========================================================
   MISSION
   ========================================================= */
.mission-section { background: var(--white); }
.mission-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.mission-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--border); aspect-ratio: 4/3.5; }
.mission-visual img { width: 100%; height: 100%; object-fit: cover; }
.mission-text h2 { font-size: 34px; margin-bottom: 20px; max-width: 16ch; }
.mission-statement {
  font-family: var(--font-display);
  font-size: 25px; font-weight: 700; font-style: italic;
  color: var(--green);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 22px;
  line-height: 1.4;
}
.mission-text p:not(.mission-statement) { font-size: 15.5px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section { background: var(--cream); }
.contact-section h2 { font-size: 36px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  margin-top: 46px;
}
.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.contact-form form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body); font-size: 14.5px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(228,169,76,.16);
}
.contact-form textarea { resize: vertical; }
.contact-form .cta-button { align-self: flex-start; background: var(--navy); color: var(--white); }
.contact-form .cta-button:hover { background: var(--gold); color: var(--navy); }

.contact-info { display: flex; flex-direction: column; gap: 26px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--gold-2);
  border-radius: 8px;
}
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item h4 { font-size: 15px; color: var(--navy); margin-bottom: 5px; }
.contact-item p, .contact-item a { font-size: 14px; color: var(--slate); line-height: 1.6; }
.contact-item a:hover { color: var(--gold); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin-top: 4px;
}
.contact-map iframe { width: 100%; height: 220px; border: 0; display: block; }

.form-notice {
  padding: 14px 18px; margin-top: 24px;
  border-radius: 6px;
  background: #E7F1EB; color: var(--green);
  font-size: 14px; font-weight: 500;
  border: 1px solid rgba(29,74,56,.15);
}
.form-error { background: #FBEAEA; color: #8B3030; border-color: rgba(139,48,48,.18); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.85); }
.footer-top { padding: 70px 40px 40px; }
.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr .9fr .9fr .9fr;
  gap: 40px;
}
.footer-brand { display: flex; gap: 14px; }
.footer-logo-badge {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--cream);
  display: grid; place-items: center;
  padding: 6px;
}
.footer-logo { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-title {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  letter-spacing: 1px; color: var(--white); margin-bottom: 10px;
}
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.62); line-height: 1.7; }
.footer-section h5 {
  font-family: var(--font-display); font-size: 15px; letter-spacing: .8px;
  text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px; font-weight: 700;
}
.footer-section ul li { font-size: 13.5px; color: rgba(255,255,255,.7); margin-bottom: 14px; line-height: 1.7; }
.footer-section ul li strong { color: rgba(255,255,255,.92); display: inline-block; margin-bottom: 2px; }
.footer-section a { color: rgba(255,255,255,.7); }
.footer-section a:hover { color: var(--gold-2); }
.footer-links li { margin-bottom: 10px; }

.footer-bottom { border-top: 1px solid var(--border-dark); padding: 22px 40px; }
.footer-bottom-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}
.photo-credit {
  max-width: var(--container); margin: 10px auto 0;
  font-size: 11.5px; color: rgba(255,255,255,.34);
  line-height: 1.6;
}
.photo-credit a { color: rgba(255,255,255,.5); }
.photo-credit a:hover { color: var(--gold-2); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .about-grid, .mission-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .services-grid .service-card { grid-column: span 1 !important; }
  .pipeline { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .pipeline-step p { display: none; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-links-mobile { display: flex; }
  .header-content { padding: 12px 20px; }
  .logo-full-mark { height: 32px; }
  .hero { padding: 120px 20px 70px; min-height: auto; }
  .section-content { padding: 64px 20px; }
  .services-grid { grid-template-columns: 1fr !important; }
  .pipeline { grid-template-columns: 1fr; gap: 30px; }
  .pipeline-track { display: none; }
  .pipeline-step p { display: block; }
  .value-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { padding: 56px 20px 30px; }
  .footer-bottom { padding: 20px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .photo-credit { text-align: center; padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-description { font-size: 16px; }
  .cta-button, .cta-ghost { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}
