/* ═══════════════════════════════════════════════
   PINEWOOD REFINERY — DESIGN SYSTEM
   Premium Industrial · Dark Steel · Orange Accent
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400&family=Barlow:wght@300;400;500;600&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ── TOKENS ── */
:root {
  --steel:        #0c1018;
  --steel-mid:    #141b26;
  --steel-light:  #1c2535;
  --steel-panel:  #232e40;
  --steel-border: rgba(255,255,255,0.07);
  --orange:       #e05a14;
  --orange-light: #f07830;
  --orange-muted: rgba(224,90,20,0.12);
  --amber:        #f09020;
  --white:        #ffffff;
  --off-white:    #f4f6f8;
  --smoke:        #c8d4de;
  --mist:         #8898aa;
  --slate:        #4a5668;
  --green:        #1e5c3a;
  --green-mid:    #2d7a52;
  --green-light:  #3d9966;
  --green-pale:   #a8d8be;
  --text-dark:    #0c1018;
  --text-body:    #2a3444;
  --text-mid:     #4a5668;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--steel);
  color: var(--smoke);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--steel); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.section { padding: 100px 0; }
.section-lg { padding: 120px 0; }

.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--orange); }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700; color: var(--white);
  text-transform: uppercase; line-height: 1.05;
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic; font-weight: 300; color: var(--orange);
}

.rule { width: 50px; height: 2px; background: var(--orange); margin-bottom: 28px; }
.rule.green { background: var(--green-light); }

.body-text { font-size: 15px; line-height: 1.85; color: var(--mist); font-weight: 300; }
.body-text p + p { margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; padding: 14px 32px;
  border: none; cursor: pointer; transition: all 0.3s ease;
}
.btn-primary {
  background: var(--orange); color: var(--white);
}
.btn-primary:hover { background: var(--orange-light); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-dark {
  background: var(--steel); color: var(--white);
}
.btn-dark:hover { background: var(--steel-mid); }

/* ── TAGS ── */
.tag {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid var(--steel-border); color: var(--mist);
  display: inline-block;
}
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }

.green-badge {
  display: inline-block; font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
  padding: 5px 14px; background: rgba(30,92,58,0.3);
  color: var(--green-pale); border: 1px solid rgba(61,153,102,0.3);
  margin-bottom: 16px;
}

/* ══════════════════════════════════
   NAVIGATION
══════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  background: rgba(12,16,24,0.97);
  border-bottom: 1px solid var(--steel-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.nav-logo-wordmark { display: flex; flex-direction: column; }
.nav-logo-top {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 800; color: var(--white);
  text-transform: uppercase; letter-spacing: 2px; line-height: 1;
}
.nav-logo-bottom {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 400; color: var(--orange);
  letter-spacing: 3px; text-transform: uppercase; line-height: 1;
  margin-top: 2px;
}
.nav-divider {
  width: 1px; height: 32px; background: var(--steel-border); margin-left: 4px;
}
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 0;
}
.nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--mist);
  padding: 8px 16px; transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-contact-btn {
  background: var(--orange) !important; color: var(--white) !important;
  padding: 10px 22px !important; margin-left: 10px;
}
.nav-contact-btn:hover { background: var(--orange-light) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; z-index: 1001;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--white); transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--steel-mid); flex-direction: column;
    padding: 100px 40px 40px; gap: 8px;
    transition: right 0.35s ease; border-left: 1px solid var(--steel-border);
  }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 12px 0; font-size: 14px; }
  .nav-contact-btn { margin-left: 0 !important; margin-top: 16px; text-align: center; display: block; }
  .hamburger { display: flex; }
}

/* ══════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════ */
.page-hero {
  position: relative; padding: 160px 5vw 80px; min-height: 400px;
  background: var(--steel-mid);
  border-bottom: 1px solid var(--steel-border);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--amber), transparent);
}
.page-hero-inner { max-width: 800px; }
.breadcrumb {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mist); margin-bottom: 20px;
}
.breadcrumb a { color: var(--orange); text-decoration: none; }
.breadcrumb-sep { margin: 0 8px; opacity: 0.4; }
.page-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.page-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--orange); }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800; color: var(--white);
  text-transform: uppercase; line-height: 0.95;
  margin-bottom: 20px;
}
.page-hero h1 em { font-style: italic; font-weight: 300; color: var(--orange); }
.page-hero-lead {
  font-size: 16px; line-height: 1.85; color: var(--mist); font-weight: 300;
  max-width: 600px;
}

/* ══════════════════════════════════
   PRODUCT SECTIONS
══════════════════════════════════ */
.products-nav {
  position: sticky; top: 72px; z-index: 800;
  background: var(--steel-mid); border-bottom: 1px solid var(--steel-border);
  overflow-x: auto;
}
.products-nav-inner {
  display: flex; gap: 0; max-width: 1200px; margin: 0 auto; padding: 0 5vw;
}
.products-nav-link {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mist); padding: 16px 20px; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: all 0.2s;
  text-decoration: none;
}
.products-nav-link:hover, .products-nav-link.active {
  color: var(--orange); border-bottom-color: var(--orange);
}

.product-section { padding: 80px 0; }
.product-section.alt { background: var(--steel-mid); }
.product-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start;
  max-width: 1200px; margin: 0 auto; padding: 0 5vw;
}
.product-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  filter: brightness(0.8) contrast(1.1);
}
.product-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--mist); margin-bottom: 12px;
}
.product-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700; color: var(--white); text-transform: uppercase;
  margin-bottom: 8px;
}
.product-abbr {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 20px;
}

/* Spec tables */
.spec-table {
  width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 13px;
}
.spec-table th {
  text-align: left; font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange); padding: 10px 14px;
  border-bottom: 1px solid var(--steel-border); font-weight: 600;
}
.spec-table td {
  padding: 10px 14px; color: var(--smoke);
  border-bottom: 1px solid var(--steel-border);
}
.spec-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ══════════════════════════════════
   STATS BAND
══════════════════════════════════ */
.stats-band {
  background: var(--steel); padding: 60px 0;
  border-top: 1px solid var(--steel-border);
  border-bottom: 1px solid var(--steel-border);
}
.stats-band-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
}
.stats-band-item {
  text-align: center; padding: 20px;
  border-right: 1px solid var(--steel-border);
}
.stats-band-item:last-child { border-right: none; }
.stats-band-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 42px; font-weight: 700; color: var(--orange);
  line-height: 1;
}
.stats-band-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--mist); margin-top: 8px;
}

/* ══════════════════════════════════
   NEWS CARDS
══════════════════════════════════ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.news-card {
  background: var(--steel-mid); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s;
}
.news-card:hover { transform: translateY(-2px); }
.news-card img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  filter: brightness(0.75); transition: filter 0.3s;
}
.news-card:hover img { filter: brightness(0.85); }
.news-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.news-card-cat {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.news-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--white);
  text-transform: uppercase; line-height: 1.15; margin-bottom: 12px;
}
.news-card p { font-size: 14px; color: var(--mist); line-height: 1.7; font-weight: 300; flex: 1; }
.news-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--steel-border);
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--mist);
}
.news-card-meta a { color: var(--orange); text-decoration: none; }

/* ══════════════════════════════════
   ARTICLE PAGE
══════════════════════════════════ */
.article-hero {
  position: relative; min-height: 500px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.article-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.4);
}
.article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--steel) 0%, transparent 60%);
}
.article-hero-content {
  position: relative; z-index: 2; padding: 60px 5vw;
  max-width: 800px;
}
.article-body {
  max-width: 720px; margin: 0 auto; padding: 60px 5vw 100px;
}
.article-body p {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px; line-height: 2; color: var(--smoke);
  margin-bottom: 24px;
}
.article-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 700; color: var(--white);
  text-transform: uppercase; margin: 48px 0 20px;
}
.article-pullquote {
  border-left: 3px solid var(--orange);
  padding: 20px 0 20px 30px; margin: 40px 0;
  font-family: 'Libre Baskerville', serif;
  font-size: 20px; font-style: italic; line-height: 1.7;
  color: var(--white);
}
.article-meta {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mist); margin-top: 16px;
  display: flex; gap: 20px;
}
.article-meta span { display: flex; align-items: center; gap: 6px; }

/* ══════════════════════════════════
   INDUSTRIES
══════════════════════════════════ */
.industry-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-bottom: 1px solid var(--steel-border);
}
.industry-block > div:first-child { padding: 60px 5vw; display: flex; flex-direction: column; justify-content: center; }
.industry-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.industry-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px; font-weight: 700; color: var(--white);
  text-transform: uppercase; margin-bottom: 16px;
}
.product-list { margin-top: 24px; }
.product-list-item {
  padding: 12px 0; border-bottom: 1px solid var(--steel-border);
  font-size: 14px; color: var(--smoke); display: flex; justify-content: space-between; align-items: center;
}
.product-list-grade { font-size: 11px; color: var(--mist); letter-spacing: 1px; text-transform: uppercase; }

/* ══════════════════════════════════
   CAREERS
══════════════════════════════════ */
.job-card {
  background: var(--steel-mid); padding: 36px; border-left: 3px solid var(--orange);
  margin-bottom: 2px; transition: background 0.2s;
}
.job-card:hover { background: var(--steel-light); }
.job-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--white);
  text-transform: uppercase; margin-bottom: 8px;
}
.job-card-dept {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.job-card p { font-size: 14px; color: var(--mist); line-height: 1.7; margin-bottom: 16px; }
.job-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ══════════════════════════════════
   CONTACT FORM
══════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--mist); margin-bottom: 8px; font-weight: 500;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 16px; background: var(--steel-light);
  border: 1px solid var(--steel-border); color: var(--white);
  font-family: 'Barlow', sans-serif; font-size: 14px;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--orange);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select { appearance: none; cursor: pointer; }

/* ══════════════════════════════════
   SUSTAINABILITY
══════════════════════════════════ */
.saf-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px;
}
.saf-stat { padding: 20px; background: rgba(30,92,58,0.2); border: 1px solid rgba(61,153,102,0.2); }
.saf-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px; font-weight: 700; color: var(--green-pale); line-height: 1;
}
.saf-stat-label {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--green-pale); opacity: 0.7; margin-top: 6px;
}

/* ══════════════════════════════════
   CTA BAND
══════════════════════════════════ */
.cta-band {
  background: var(--orange); padding: 50px 0;
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 5vw; gap: 40px;
}
.cta-band-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px; font-weight: 700; color: var(--white);
  text-transform: uppercase; line-height: 1;
}
.cta-band-text p { font-size: 15px; color: rgba(255,255,255,0.8); margin-top: 10px; max-width: 500px; }

/* ══════════════════════════════════
   TICKER
══════════════════════════════════ */
.ticker {
  background: var(--steel); border-top: 1px solid var(--steel-border);
  border-bottom: 1px solid var(--steel-border);
  overflow: hidden; padding: 16px 0; white-space: nowrap;
}
.ticker-track {
  display: flex; gap: 60px;
  animation: tickerScroll 30s linear infinite;
}
.ticker-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--mist); flex-shrink: 0;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer {
  background: var(--steel-mid); border-top: 1px solid var(--steel-border);
  padding: 80px 5vw 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px; max-width: 1200px; margin: 0 auto;
}
.footer-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--white);
  text-transform: uppercase; letter-spacing: 2px;
}
.footer-brand-sub {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange); margin-top: 2px;
}
.footer-tagline {
  font-size: 14px; color: var(--mist); line-height: 1.7;
  margin-top: 16px; font-weight: 300;
}
.footer-certbadges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.footer-certbadge {
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--steel-border); color: var(--mist);
}
.footer-col h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--white); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px; color: var(--mist); text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 30px 0; margin-top: 60px;
  border-top: 1px solid var(--steel-border);
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.footer-copy {
  font-size: 12px; color: var(--slate); letter-spacing: 0.5px;
}
.footer-copy span { color: var(--mist); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 11px; color: var(--slate); text-decoration: none;
  letter-spacing: 0.5px; transition: color 0.2s;
}
.footer-legal a:hover { color: var(--orange); }

/* ══════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   NEWS FILTERS
══════════════════════════════════ */
.news-filter-bar {
  display: flex; gap: 4px; margin-bottom: 40px; flex-wrap: wrap;
}
.news-filter-btn {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 18px; background: transparent; color: var(--mist);
  border: 1px solid var(--steel-border); cursor: pointer;
  transition: all 0.2s; font-family: 'Barlow', sans-serif;
}
.news-filter-btn:hover, .news-filter-btn.active {
  background: var(--orange); color: var(--white); border-color: var(--orange);
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .industry-block { grid-template-columns: 1fr; }
  .industry-block > div:nth-child(2) { order: -1 !important; max-height: 300px; overflow: hidden; }
  .stats-band-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .news-grid { grid-template-columns: 1fr; }
  .saf-stats { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .stats-band-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .saf-stats { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 120px 5vw 60px; }
}
