/* CoalGasOil Corporate — Industrial Refined */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

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

:root {
  --coal: #0e0e0e;
  --coal-light: #1a1a1a;
  --shale: #242424;
  --graphite: #333333;
  --slate: #5a5a5a;
  --ash: #8a8a8a;
  --smoke: #b5b5b5;
  --cream: #e8e2d6;
  --amber: #d4920b;
  --amber-light: #e8a828;
  --amber-glow: #f0be4a;
  --flame: #c44d18;
  --petroleum: #1b2a1e;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--coal);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Grain overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 146, 11, 0.12);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
}

.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.nav-logo .accent { color: var(--amber); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--smoke);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--amber-light); }
.nav-links a:hover::after { width: 100%; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(212, 146, 11, 0.08), transparent),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(27, 42, 30, 0.6), transparent),
    linear-gradient(160deg, var(--coal) 0%, #0d1410 40%, #12100a 70%, var(--coal) 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 120px,
      rgba(212, 146, 11, 0.015) 120px,
      rgba(212, 146, 11, 0.015) 121px
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 0 3rem;
  padding-top: 6rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--amber);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--amber-light);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ash);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--amber);
  color: var(--coal);
}

.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(212, 146, 11, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--graphite);
}

.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber-light);
}

/* ---- HERO STATS BAR ---- */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  border-top: 1px solid rgba(212, 146, 11, 0.12);
}

.hero-stat {
  flex: 1;
  padding: 2rem 3rem;
  border-right: 1px solid rgba(212, 146, 11, 0.08);
  opacity: 0;
  animation: fadeUp 0.6s forwards;
}

.hero-stat:nth-child(1) { animation-delay: 1.1s; }
.hero-stat:nth-child(2) { animation-delay: 1.25s; }
.hero-stat:nth-child(3) { animation-delay: 1.4s; }
.hero-stat:nth-child(4) { animation-delay: 1.55s; }

.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber-light);
}

.hero-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 0.25rem;
}

/* ---- SECTIONS ---- */
section { padding: 7rem 3rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--amber);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

/* ---- ABOUT ---- */
.about {
  background: var(--coal-light);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-text p {
  color: var(--ash);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-visual {
  position: relative;
  height: 420px;
  background:
    linear-gradient(135deg, var(--shale), var(--coal));
  border: 1px solid rgba(212, 146, 11, 0.1);
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(212, 146, 11, 0.12), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(196, 77, 24, 0.08), transparent 50%);
}

.about-visual-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
}

.about-visual-text span {
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(212, 146, 11, 0.08);
  line-height: 1;
  display: block;
}

.about-visual-text p {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.5rem;
}

/* ---- SERVICES ---- */
.services { max-width: 1200px; margin: 0 auto; }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.services-header p {
  max-width: 420px;
  color: var(--ash);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(212, 146, 11, 0.08);
}

.service-card {
  background: var(--coal);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.service-card:hover {
  background: var(--coal-light);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.5s;
}

.service-card:hover::before { width: 100%; }

.service-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(212, 146, 11, 0.1);
  line-height: 1;
  margin-bottom: 2rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--ash);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- VALUES ---- */
.values {
  background: var(--coal-light);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.values-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.value-item {
  border-top: 1px solid var(--graphite);
  padding-top: 1.5rem;
}

.value-item:hover { border-color: var(--amber); }

.value-item h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.value-item p {
  color: var(--ash);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  position: relative;
  padding: 6rem 3rem;
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(212, 146, 11, 0.06), transparent);
}

.cta-banner .section-title {
  position: relative;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.cta-banner p {
  position: relative;
  color: var(--ash);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-banner .btn { position: relative; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 3rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 320px;
}

.footer h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 1.25rem;
}

.footer ul { list-style: none; }

.footer ul li { margin-bottom: 0.6rem; }

.footer ul a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer ul a:hover { color: var(--amber-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--slate);
}

/* ---- TEAM PAGE ---- */
.page-header {
  padding: 10rem 3rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(212, 146, 11, 0.05), transparent),
    linear-gradient(180deg, var(--coal) 0%, var(--coal-light) 100%);
}

.page-header > * { position: relative; z-index: 1; }

.page-header p {
  color: var(--ash);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05rem;
}

.team-section {
  padding: 4rem 3rem 7rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-dept {
  margin-bottom: 5rem;
}

.team-dept-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--graphite);
  margin-bottom: 2.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--coal-light);
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.team-card:hover {
  border-color: rgba(212, 146, 11, 0.2);
  transform: translateY(-4px);
}

.team-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--shale);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 60%, rgba(212, 146, 11, 0.06), transparent 70%);
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-img .placeholder {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(212, 146, 11, 0.15);
  letter-spacing: 0.05em;
  z-index: 1;
}

.team-card-info {
  padding: 1.5rem;
}

.team-card-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-card-info .role {
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.team-card-info p {
  font-size: 0.85rem;
  color: var(--ash);
  line-height: 1.6;
}

.team-card-info a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s;
}

.team-card-info a:hover { color: var(--amber-light); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 50%; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .hero-content { padding: 0 1.5rem; padding-top: 5rem; }
  section { padding: 4rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-stat { flex: 1 1 100%; }
}
