/* 
  Fuel XL Petroleum - Core Styles
  Professional, refined corporate aesthetic
*/

:root {
  --gold: #C09A53;
  --gold-light: #D5B168;
  --gold-dark: #9A7736;
  --green: #0E3522;
  --green-mid: #1A4731;
  --green-light: #286446;
  --dark: #111412;
  --dark2: #181C1A;
  --dark3: #222724;
  --gray: #A0A5A1;
  --white: #FFFFFF;
}

@media (prefers-color-scheme: light) {
  :root {
    --gold: #A67D2D;
    --gold-light: #BE9440;
    --gold-dark: #825D18;
    --green: #144930;
    --green-mid: #206342;
    --green-light: #2A7D53;
    --dark: #F7F8F7;
    --dark2: #EFEFEF;
    --dark3: #E4E5E4;
    --gray: #626A65;
    --white: #111412; /* Text color in light mode */
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, .condensed {
  font-family: 'Barlow Condensed', sans-serif;
}
.accent { color: var(--gold); }
.section-tag {
  font-size: 0.8rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
}
.section-desc { color: var(--gray); max-width: 600px; line-height: 1.6; font-size: 1.05rem; }

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 80px;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}
nav.scrolled {
  height: 65px;
  background: rgba(17, 20, 18, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(192, 154, 83, 0.15);
}
@media (prefers-color-scheme: light) {
  nav { background: var(--dark); border-bottom: 1px solid rgba(0,0,0,0.05); }
  nav.scrolled { background: rgba(247, 248, 247, 0.98); border-bottom: 1px solid rgba(166, 125, 45, 0.2); }
}

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo img { height: 48px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-text span:first-child {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.15rem; color: var(--gold); letter-spacing: 1px;
}
.nav-logo-text span:last-child { font-size: 0.7rem; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; font-weight: 500; }

.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--white); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.2s; position: relative; opacity: 0.85;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); opacity: 1; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--gold); color: #fff !important; padding: 10px 24px;
  border-radius: 4px; font-weight: 700 !important;
  transition: background 0.3s, transform 0.2s; opacity: 1 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light); color: #fff !important; transform: translateY(-2px); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; border: none; background: transparent; }
.hamburger span { width: 24px; height: 2px; background: var(--gold); transition: all 0.3s; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #fff; padding: 14px 36px; border-radius: 4px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  letter-spacing: 1px; text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(192, 154, 83, 0.2); color: #fff; }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--gray); color: var(--white);
  padding: 14px 36px; border-radius: 4px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(192, 154, 83, 0.05); }

/* ---- SECTION BASE ---- */
section { padding: 90px 5%; }
.container { max-width: 1240px; margin: 0 auto; }
img { max-width: 100%; height: auto; display: block; -webkit-touch-callout: none; user-select: none; }

/* ---- CARDS ---- */
.card-base {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all 0.3s ease;
}
@media (prefers-color-scheme: light) {
  .card-base { border: 1px solid rgba(0,0,0,0.05); }
}
.card-base:hover {
  border-color: rgba(192, 154, 83, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 160px 5% 80px;
  background: linear-gradient(to bottom, var(--dark2), var(--dark));
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.page-header .section-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; }
.page-header .section-desc { margin: 0 auto; }

/* ---- FOOTER ---- */
footer {
  background: var(--dark2); padding: 60px 5% 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
@media (prefers-color-scheme: light) {
  footer { border-top: 1px solid rgba(0,0,0,0.05); }
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
@media (prefers-color-scheme: light) {
  .footer-inner { border-bottom: 1px solid rgba(0,0,0,0.05); }
}
.footer-brand img { height: 48px; margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-size: 1.1rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; color: var(--gold); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { color: var(--gray); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1240px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--gray); }

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- MOBILE ---- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 0 5%; height: 70px; }
  .nav-logo img { height: 40px; }
  .nav-links {
    display: none; flex-direction: column; gap: 0; position: absolute;
    top: 70px; left: 0; right: 0; background: var(--dark); padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: flex-start;
  }
  @media (prefers-color-scheme: light) {
    .nav-links { border-bottom: 1px solid rgba(0,0,0,0.05); }
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 5%; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.02); }
  @media (prefers-color-scheme: light) {
    .nav-links a { border-bottom: 1px solid rgba(0,0,0,0.02); }
  }
  .nav-links a::after { display: none; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  
  section { padding: 60px 5%; }
  .page-header { padding: 120px 5% 60px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
}
